//
//  GGTitleScrollView.h
//  oneDemo
//
//  Created by engfei on 2016/11/18.
//  Copyright © 2016年 GaiGai. All rights reserved.
//

#import <UIKit/UIKit.h>


@class GGTitleScrollView;

@protocol GGTitleScrollViewDelegate <NSObject>

- (void)titleScrollView:(GGTitleScrollView *)view index:(NSInteger)index title:(NSString *)title;

@end

@interface GGTitleScrollView : UIScrollView

@property (nonatomic, assign)NSInteger kCurreIndex;

/** 按钮正常颜色 */
@property (nonatomic, strong) UIColor *normalColor;

/** 按钮选中颜色 */
@property (nonatomic, strong) UIColor *selectColor;

/** 下划线颜色 */
@property (nonatomic, strong) UIColor *underlineColor;

/** 下划线高度 */
@property (nonatomic, assign) CGFloat underlineH;

/** item 的宽度.  默认是用 title 计算 */
@property (nonatomic, assign) CGFloat itemWidth;

/** item 的间距. 赋值 999 使用默认间距 30 */
@property (nonatomic, assign) CGFloat itemMargin;



/** 是否显示下划线 */
@property (nonatomic, assign) BOOL isShowUnderline;

/** 字体大小 */
@property (nonatomic, assign) CGFloat titleFont;

/** 代理 */
@property (nonatomic, weak) id<GGTitleScrollViewDelegate> gg_delegate;

- (void)setSubviewWithTtiles:(NSArray *)titles;

/** 改变当前选择的对象 */
- (void)seletedIndex:(NSInteger)index;

- (void)SetTheLocation:(int)index : (BOOL)refresh;
- (void)setSubviewWithTtilesJudge:(NSArray *)titles : (BOOL)judge;



@end
